package cn.ad.server.job.adapter.job;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class JobMain {

	public static void main(String[] args) {
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:application-job.xml");

		// final WarmUpCacheJob bean =
		// applicationContext.getBean(WarmUpCacheJob.class);
		// bean.execute();

//		final WarmUpAdspaceScheduledFixedRate bean = applicationContext.getBean(WarmUpAdspaceScheduledFixedRate.class);
//
//		ScheduledExecutorService service = Executors.newSingleThreadScheduledExecutor();
//
//		service.scheduleAtFixedRate(new Runnable() {
//			@Override
//			public void run() {
//				bean.execute();
//			}
//		}, 0, 60, TimeUnit.SECONDS);
//		System.out.println("end");
		
	}

}
